import { aGet } from './http'
export function getData(store) {
  return new Promise((resolve, reject) => {
    aGet({
      url: '/api/constellation/getAll',
      data: {
        consName: store.state.consName,
        type: store.state.type
      },
      success(data) {
        resolve(data)
      },
      error(err) {
        reject(err)
      }
    })
  })
}
